Integrand size = 18, antiderivative size = 53 \[ \int x \sqrt {\sec (a+b x)} \sin (a+b x) \, dx=-\frac {2 x}{b \sqrt {\sec (a+b x)}}+\frac {4 \sqrt {\cos (a+b x)} E\left (\left .\frac {1}{2} (a+b x)\right |2\right ) \sqrt {\sec (a+b x)}}{b^2} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4297, 3856, 2719} \[ \int x \sqrt {\sec (a+b x)} \sin (a+b x) \, dx=\frac {4 \sqrt {\cos (a+b x)} \sqrt {\sec (a+b x)} E\left (\left .\frac {1}{2} (a+b x)\right |2\right )}{b^2}-\frac {2 x}{b \sqrt {\sec (a+b x)}} \]
[In]
[Out]
Rule 2719
Rule 3856
Rule 4297
Rubi steps \begin{align*} \text {integral}& = -\frac {2 x}{b \sqrt {\sec (a+b x)}}+\frac {2 \int \frac {1}{\sqrt {\sec (a+b x)}} \, dx}{b} \\ & = -\frac {2 x}{b \sqrt {\sec (a+b x)}}+\frac {\left (2 \sqrt {\cos (a+b x)} \sqrt {\sec (a+b x)}\right ) \int \sqrt {\cos (a+b x)} \, dx}{b} \\ & = -\frac {2 x}{b \sqrt {\sec (a+b x)}}+\frac {4 \sqrt {\cos (a+b x)} E\left (\left .\frac {1}{2} (a+b x)\right |2\right ) \sqrt {\sec (a+b x)}}{b^2} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 0.64 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.25 \[ \int x \sqrt {\sec (a+b x)} \sin (a+b x) \, dx=-\frac {2 \left (b x-2 \tan (a+b x)+\operatorname {Hypergeometric2F1}\left (\frac {1}{4},\frac {1}{2},\frac {3}{2},-\tan ^2(a+b x)\right ) \sqrt [4]{\sec ^2(a+b x)} \tan (a+b x)\right )}{b^2 \sqrt {\sec (a+b x)}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.30 (sec) , antiderivative size = 310, normalized size of antiderivative = 5.85
method | result | size |
risch | \(-\frac {\left (x b +2 i\right ) \left ({\mathrm e}^{2 i \left (x b +a \right )}+1\right ) \sqrt {2}\, \sqrt {\frac {{\mathrm e}^{i \left (x b +a \right )}}{{\mathrm e}^{2 i \left (x b +a \right )}+1}}\, {\mathrm e}^{-i \left (x b +a \right )}}{b^{2}}-\frac {2 i \left (-\frac {2 \left ({\mathrm e}^{2 i \left (x b +a \right )}+1\right )}{\sqrt {\left ({\mathrm e}^{2 i \left (x b +a \right )}+1\right ) {\mathrm e}^{i \left (x b +a \right )}}}+\frac {i \sqrt {-i \left (i+{\mathrm e}^{i \left (x b +a \right )}\right )}\, \sqrt {2}\, \sqrt {i \left ({\mathrm e}^{i \left (x b +a \right )}-i\right )}\, \sqrt {i {\mathrm e}^{i \left (x b +a \right )}}\, \left (-2 i \operatorname {EllipticE}\left (\sqrt {-i \left (i+{\mathrm e}^{i \left (x b +a \right )}\right )}, \frac {\sqrt {2}}{2}\right )+i \operatorname {EllipticF}\left (\sqrt {-i \left (i+{\mathrm e}^{i \left (x b +a \right )}\right )}, \frac {\sqrt {2}}{2}\right )\right )}{\sqrt {{\mathrm e}^{3 i \left (x b +a \right )}+{\mathrm e}^{i \left (x b +a \right )}}}\right ) \sqrt {2}\, \sqrt {\frac {{\mathrm e}^{i \left (x b +a \right )}}{{\mathrm e}^{2 i \left (x b +a \right )}+1}}\, \sqrt {\left ({\mathrm e}^{2 i \left (x b +a \right )}+1\right ) {\mathrm e}^{i \left (x b +a \right )}}\, {\mathrm e}^{-i \left (x b +a \right )}}{b^{2}}\) | \(310\) |
[In]
[Out]
Exception generated. \[ \int x \sqrt {\sec (a+b x)} \sin (a+b x) \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
\[ \int x \sqrt {\sec (a+b x)} \sin (a+b x) \, dx=\int x \sin {\left (a + b x \right )} \sqrt {\sec {\left (a + b x \right )}}\, dx \]
[In]
[Out]
\[ \int x \sqrt {\sec (a+b x)} \sin (a+b x) \, dx=\int { x \sqrt {\sec \left (b x + a\right )} \sin \left (b x + a\right ) \,d x } \]
[In]
[Out]
\[ \int x \sqrt {\sec (a+b x)} \sin (a+b x) \, dx=\int { x \sqrt {\sec \left (b x + a\right )} \sin \left (b x + a\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int x \sqrt {\sec (a+b x)} \sin (a+b x) \, dx=\int x\,\sin \left (a+b\,x\right )\,\sqrt {\frac {1}{\cos \left (a+b\,x\right )}} \,d x \]
[In]
[Out]